import service from "@/utils/request";

// service.defaults.timeout = 7000;
// service.defaults.baseUrl = "http://localhost:8082"

// 获取导航栏nav信息
export function getNavValue(){
    return service({
        url:'/navs',
        method: 'get'
    }).then(res => {
        // console.log(res)
        return res.data;
    }).catch(err=>{
        console.log(err)
        return null;
    })
}

// 获取推荐视频页
export function getVideoPage(pageNum, pageSize){
    return service({
        url:'/videos/page/' + pageNum + "/" + pageSize,
        method:'get'
    }).then(res => {
        return res.data;
    }).catch(err => {
        console.log(err)
        return null;
    })
}
